import javax.swing.*;

/**
 * Created by 隼 on 2016/12/5.
 */
public class demo {
    private JPanel zzzz;

    public static void main(String[] args) {
        int z=0;
       for(int i=1;i<=5;i++){
           for(int j=1;j<=9;j++){
               if(j>=5-z&&j<=5+z){
                   System.out.print("*");
               }else {
                   System.out.print(" ");
               }
           }
           System.out.println();
           z++;
       }
    }
}
